#!/usr/bin/env python
import sys


fsock = open("err.log","w")
sys.stderr = fsock
raise Exception, 'this error will be logged'
